package com.ywq.app.dao;

import java.util.List;
import java.util.Map;

import com.ywq.app.domain.ArtArtistPic;
import com.ywq.app.domain.ArtAuctionPic;
import com.ywq.app.domain.ArtClass;
import com.ywq.app.domain.ArtPic;
import com.ywq.app.domain.PicBidLog;
import com.ywq.common.exception.AppBusinessException;

public interface ArtPicDao {
	/**
	 * 查询艺术画列表总数
	 * 
	 * @param map
	 * @return
	 * @throws AppBusinessException
	 */
	public int getArtPicListCount(Map<String, Object> map)
			throws AppBusinessException;

	/**
	 * 查询艺术画列表
	 * 
	 * @param map
	 * @return
	 * @throws AppBusinessException
	 */
	public List<ArtPic> getArtPicList(Map<String, Object> map)
			throws AppBusinessException;

	/**
	 * 添加艺术画
	 */
	public void insertArtPic(ArtPic artPic) throws AppBusinessException;

	public ArtPic getArtPic(Map<String, Object> map) throws AppBusinessException;

	public List<ArtClass> getChildById(Map<String, Object> map) throws AppBusinessException;

	public ArtClass getClassById(String classId) throws AppBusinessException;
	
	public void addClass(ArtClass artClass) throws AppBusinessException;
	
	public void updateClassById(ArtClass artClass) throws AppBusinessException;
	
	public void insertArtArtistPic(ArtArtistPic artArtistPic) throws AppBusinessException;
	
	public void insertArtAuctionPic(ArtAuctionPic artAuctionPic) throws AppBusinessException;
	
	public PicBidLog getPicBidLogByPicId(Map<String, Object> map)throws AppBusinessException;
	
	public void insertPicBidLog(PicBidLog newBid) throws AppBusinessException;
	
	public void noForwardPic(Map<String, Object> map) throws AppBusinessException;
	
	public void deletePic(String identifier) throws AppBusinessException ;
	
	public void updatePic(ArtPic artPic) throws AppBusinessException;
	
	public void deletePicArtist(String identifier) throws AppBusinessException;
	
	public List<ArtClass> getAllClass(Map<String, Object> map) throws AppBusinessException;
	
	public int getAllClassCount(Map<String, Object> map) throws AppBusinessException;
	
	public void updatePicViewAmount(ArtPic artPic) throws AppBusinessException ;

}
